package com.lf.web.action;

import java.util.List;
import java.util.Map;

import com.lf.data.Cluster;
import com.lf.web.service.system.menu.MenuDAO;
import com.opensymphony.xwork2.ActionSupport;

public class GetMenu extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4478537575480375392L;
	private MenuDAO menudao = null;
	private String parentid = "";
	private List<Cluster> menu1 = null;

	public void setMenudao(MenuDAO menudao) {
		this.menudao = menudao;
	}

	public void setParentid(String id) {
		this.parentid = id;
	}

	public List<Cluster> getMenu1() {
		return menu1;
	}

	public String execute() {
		menu1 = menudao.findByParentid(parentid);
		return SUCCESS;
	}
}
